home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
g_man
/
cat3
/
standard
/
screenspace.z
/
screenspace
Wrap
Text File
|
1998-10-20
|
2KB
|
67 lines
ssssccccrrrreeeeeeeennnnssssppppaaaacccceeee((((3333GGGG)))) ssssccccrrrreeeeeeeennnnssssppppaaaacccceeee((((3333GGGG))))
NNNNAAAAMMMMEEEE
ssssccccrrrreeeeeeeennnnssssppppaaaacccceeee - map world space to absolute screen coordinates
CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
vvvvooooiiiidddd ssssccccrrrreeeeeeeennnnssssppppaaaacccceeee(((())))
PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
_n_o_n_e
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
ssssccccrrrreeeeeeeennnnssssppppaaaacccceeee sets the projection matrix and viewport of the current window
so as to map world space to absolute screen coordinates (instead of to
the more usual window-relative screen coordinates). This provides a
convenient coordinate system for operations that are not constrained to a
window, e.g. reading pixels.
ssssccccrrrreeeeeeeennnnssssppppaaaacccceeee is equivalent to:
long xmin, ymin;
getorigin(&xmin, &ymin);
viewport(-xmin, getgdesc(GD_XPMAX)-xmin,
-ymin, getgdesc(GD_YPMAX)-ymin);
ortho2(-0.5, getgdesc(GD_XPMAX)+0.5,
-0.5, getgdesc(GD_YPMAX)+0.5);
SSSSEEEEEEEE AAAALLLLSSSSOOOO
fullscrn, getgdesc, getorigin, viewport, ortho2
NNNNOOOOTTTTEEEE
This routine is available only in immediate mode.
PPPPaaaaggggeeee 1111